function debugXml(someNode)
    {       
        if (someNode.nodeType == Node.ELEMENT_NODE) {
          GLog.write("We've found an element node named " + someNode.nodeName +" with the text:" + someNode.textContent);
        } else if (someNode.nodeType == Node.TEXT_NODE) {
          GLog.write("It's a text node; the text is " + someNode.nodeValue);
        } else if (someNode.nodeType == Node.ATTRIBUTE_NODE) {
          GLog.write("It's an attribute named " + someNode.nodeName 
                                + " with a value of '" + someNode.nodeValue + "'");
        }
        if (someNode.hasChildNodes())
        {
          for(var i=0 ; i < someMode.childNodes.length; i++)
          {
            debugXml(someMode.childNodes[i]);
          }
        }
    }